﻿<DataObjects:EntityControlBase x:Class="DiscoveryLogic.Analytics.Modules.Nodes.GrantNode"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:DataObjects="clr-namespace:DiscoveryLogic.Analytics.DataObjects;assembly=Analytics.DataObjects"
    Height="Auto" Width="Auto" Loaded="UserControl_Loaded">
    <DataObjects:EntityControlBase.ContextMenu>
        <ContextMenu>
            <MenuItem
				Name="cmu_ExplorePublications"
				Header="-> publications" 
				Tag="../images/doc.png" 
                Click="cmu_ExplorePublications_Click"/>
            <MenuItem 
				Name="cmu_ExploreOrganizations"
				Header="-> organizations" 
				Tag="../images/home.png" 
                Click="cmu_ExploreOrganizations_Click"/>
            <MenuItem 
				Name="cmu_ExplorePersons"
				Header="-> persons" 
				Tag="../images/user.png" 
                Click="cmu_ExplorePersons_Click"/>
            <Separator/>
            <MenuItem
                Name="cmu_OpenRule"
                Header="Open relation rule"
                Tag="/images/rule.ico"
                Click="cmu_OpenRuleRule_Click"/>
            <MenuItem
                Name="cmu_DefineNewRule"
                Header="New relation rule"
                Tag="/images/rule.ico"
                Click="cmu_DefineNewRule_Click"/>
        </ContextMenu>
    </DataObjects:EntityControlBase.ContextMenu>
    <DataObjects:EntityControlBase.ToolTip>
        <TextBlock Text="{Binding Path=Name}"></TextBlock>
    </DataObjects:EntityControlBase.ToolTip>
    <Grid>
        <StackPanel Orientation="Vertical">
            <Border 
                x:Name="border1" Margin="1" 
                HorizontalAlignment="Center" VerticalAlignment="Center"
                Width="Auto" Height="Auto"
                Background="Transparent" BorderBrush="Transparent" 
                BorderThickness="0">
                <Image x:Name="img" Source="/images/grant.png"/>
            </Border>
            <Border 
                x:Name="border2" Margin="1" Background="Transparent" 
                HorizontalAlignment="Center" VerticalAlignment="Center"
                Width="Auto" Height="Auto"
                BorderBrush="Transparent" BorderThickness="0">
                <Grid x:Name="Container"/>
            </Border>
            <TextBlock x:Name="label" Text="{Binding Path=Name}" Foreground="Silver"/>
        </StackPanel>
    </Grid>
</DataObjects:EntityControlBase>
